/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package protocol;

import java.io.Serializable;
import java.nio.ByteBuffer;

/**
 *
 * @author Tiago
 */
public class TSFileTag implements Serializable{ //implements Serializable

    private int key;
    private int fileSize;

    public TSFileTag(int key, int fileSize) {
        this.key = key;
        this.fileSize = fileSize;
    }

    public TSFileTag() {
    }

    


    public int getFileSize() {
        return fileSize;
    }

    public int getKey() {
        return key;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public void setKey(int key) {
        this.key = key;
    }

    
    @Override
    public String toString(){
        return "Key: "+key+" Size: "+fileSize;
    }

}
